﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCEditTinTuc.ascx.cs"
    Inherits="WebApplication.Admins.Controls.UCEditTinTuc" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<script language="javascript" type="text/javascript">
    function btnReset_onclick() {

    }
</script>
<div class="t_news">
    <div class="t_titles">
        <asp:Label ID="lblId" Visible="false" runat="server" />
        <asp:Label ID="lblTitle" runat="server" /></div>
    <table class="tables">
        <tr>
            <td class="lables">
                <asp:Label ID="Label1" Text="Người đăng :" runat="server" />
            </td>
            <td>
                <asp:DropDownList runat="server" ID="dllnguoidung" AppendDataBoundItems="true">
                    <asp:ListItem Value="0">---All Tin Tức----</asp:ListItem>
                </asp:DropDownList>
                <asp:RequiredFieldValidator ErrorMessage="Chưa Chọn Người Đăng Tin" ControlToValidate="dllnguoidung"
                    ID="RequiredFieldValidator1" SetFocusOnError="true" Display="Static" InitialValue="0"
                    runat="server" CssClass="status">(*)</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="lables">
                <asp:Label ID="Label2" Text="Tiêu đề :" runat="server" />
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtTieuDe" />
                <asp:RequiredFieldValidator ErrorMessage="Chưa Nhập Tiêu Đề" ControlToValidate="txtTieuDe"
                    ID="RequiredFieldValidator2" SetFocusOnError="true" Display="Static" runat="server"
                    CssClass="status">(*)</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="lables">
                Mô tả :</td>
            <td>
                <FCKeditorV2:FCKeditor ID="txtMoTa" runat="server" BasePath="~/fckeditor/" EnableViewState="false">
                </FCKeditorV2:FCKeditor>
                <pre id="txtMoTaEdit" runat="server" visible="false"></pre>
            </td>
        </tr>
        <tr>
            <td class="lables">
                <asp:Label ID="Label3" Text="Nội dung :" runat="server" />
            </td>
            <td>
             <FCKeditorV2:FCKeditor ID="txtNoiDung" runat="server" BasePath="~/fckeditor/" EnableViewState="false">
            </FCKeditorV2:FCKeditor>
            <pre id="txtNoiDungEdit" runat="server" visible="false"></pre>
            </td>
            
        </tr>
        <tr>
            <td class="lables">
                <asp:Label ID="Label4" Text="Ngày đăng :" runat="server" />
            </td>
            <td>
                <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                </asp:ToolkitScriptManager>
                <asp:TextBox runat="server" ID="txtNgayDang" CssClass="textboxs" />
                <asp:CalendarExtender ID="txtNgayDang_CalendarExtender" runat="server" 
                    TargetControlID="txtNgayDang" Format="dd/MM/yyyy">
                </asp:CalendarExtender>
                
            </td>
        </tr>
        <tr>
            <td class="lables">
                <asp:Label ID="Label5" Text="Hình ảnh :" runat="server" />
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtHinhAnh" CssClass="textboxs1" />
               <a href="javascript:void(0)" target="_blank" onclick='window.open("Upload.aspx?Id=<%=txtHinhAnh.ClientID %>","Upload","height=400px,width=550px");return false;'>
                Select</a>
            </td>
        </tr>
        <tr>
            <td class="lables">
                <asp:Label ID="Label6" Text="Hiển Thị :" runat="server" />
            </td>
            <td>
                <asp:RadioButton ID="rdTrue" runat="server" Text="True" Checked="true" GroupName="HienThi" />
                <asp:RadioButton ID="rdFales" runat="server" Text="False" GroupName="HienThi" />
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                <asp:Button Text="Lưu" ID="btnLuu" runat="server" CssClass="buttons" OnClick="btnLuu_Click" />
                <input type="reset" value="Reset" class="buttons" runat="server" id="btnReset" onclick="return btnReset_onclick()" />
                <input type="button" onclick="location.href='TinTuc.aspx'" value="Cancel" class="buttons"
                    id="btnThoat" runat="server" />
            </td>
        </tr>
    </table>
    <asp:Label ID="lblStatus" runat="server" />
</div>
